import request from '@/utils/request'

// 查询自动航线列表
export function listShipline(query) {
  return request({
    url: '/system/shipline/list',
    method: 'get',
    params: query
  })
}

// 查询自动航线详细
export function getShipline(shiplineId) {
  return request({
    url: '/system/shipline/' + shiplineId,
    method: 'get'
  })
}

// 新增自动航线
export function addShipline(data) {
  return request({
    url: '/system/shipline',
    method: 'post',
    data: data
  })
}

// 修改自动航线
export function updateShipline(data) {
  return request({
    url: '/system/shipline',
    method: 'put',
    data: data
  })
}

// 删除自动航线
export function delShipline(scenicId, shiplineId) {
  return request({
    url: '/system/shipline/' + scenicId + "/" + shiplineId,
    method: 'delete'
  })
}
